package com.koron.order.maintain.mapper;

import com.koron.order.maintain.bean.entity.MaintainItemPo;
import com.koron.order.maintain.bean.vo.MaintainItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (MaintainItem)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-23 15:53:22
 */
public interface MaintainItemMapper {

    MaintainItemPo queryById(String id);

    List<MaintainItemPo> queryList(MaintainItemPo maintainItem);

    int insert(MaintainItemPo maintainItem);

    int update(MaintainItemPo maintainItem);

    int deleteById(String id);

    List<MaintainItemVo> queryByEquipmentId(@Param("maintainId") String orderId, @Param("maintainEquipmentId") String maintainEquipmentId);

    int insertBatch(List<MaintainItemPo> maintainItemPos);

    int deleteByMaintainEquipmentId(String maintainEquipId);

    int deleteByMaintainId(String maintainId);
}